package com.llpy.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "song")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Song {
    @Id
    private String id;
    private String name;
    private int root;
    private String musicId;
    private String imgId;
    @DBRef
    private Singer singer;


}
